package cn.stylefeng.guns.modular.system.entity;

import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author 小飞
 * @since 2019-07-10
 */
@TableName("after_indent")
public class AfterIndent implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @TableId(value = "id", type = IdType.ID_WORKER)
    private Long id;

    /**
     * 采购单id
     */
    @TableField("purchase_id")
    private Long purchaseId;

    /**
     * 1.维修2.退货
     */
    @TableField("type")
    private Integer type;

    /**
     * 退货或维修数量
     */
    @TableField("amount")
    private BigDecimal amount;

    /**
     * 原因
     */
    @TableField("reason")
    private String reason;

    /**
     * 问题类型
     */
    @TableField("trouble_type_id")
    private Integer troubleTypeId;

    /**
     * 维修前图片
     */
    @TableField("pic_before")
    private String picBefore;

    /**
     * 维修后图片
     */
    @TableField("pic_after")
    private String picAfter;

    /**
     * 1.进行中2,交易完成
     */
    @TableField("status")
    private Integer status;

    /**
     * 评论
     */
    @TableField("comment")
    private String comment;


    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getPurchaseId() {
        return purchaseId;
    }

    public void setPurchaseId(Long purchaseId) {
        this.purchaseId = purchaseId;
    }

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    public BigDecimal getAmount() {
        return amount;
    }

    public void setAmount(BigDecimal amount) {
        this.amount = amount;
    }

    public String getReason() {
        return reason;
    }

    public void setReason(String reason) {
        this.reason = reason;
    }

    public Integer getTroubleTypeId() {
        return troubleTypeId;
    }

    public void setTroubleTypeId(Integer troubleTypeId) {
        this.troubleTypeId = troubleTypeId;
    }

    public String getPicBefore() {
        return picBefore;
    }

    public void setPicBefore(String picBefore) {
        this.picBefore = picBefore;
    }

    public String getPicAfter() {
        return picAfter;
    }

    public void setPicAfter(String picAfter) {
        this.picAfter = picAfter;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public String getComment() {
        return comment;
    }

    public void setComment(String comment) {
        this.comment = comment;
    }

    @Override
    public String toString() {
        return "AfterIndent{" +
        "id=" + id +
        ", purchaseId=" + purchaseId +
        ", type=" + type +
        ", amount=" + amount +
        ", reason=" + reason +
        ", troubleTypeId=" + troubleTypeId +
        ", picBefore=" + picBefore +
        ", picAfter=" + picAfter +
        ", status=" + status +
        ", comment=" + comment +
        "}";
    }
}
